<%-- 
    Document   : ver
    Created on : 15/02/2010, 08:55:57 PM
    Author     : Cristian
--%>

<%@page contentType="text/html" pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t" %>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<link href="/general/css/admin_1.css" rel="stylesheet" type="text/css"/>
<script language="JavaScript" type="text/javascript" src="/tramite/javaScript/scripts.js"></script>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<f:view>
    <t:div>
        <h:form enctype="multipart/form-data" styleClass="fondoFormulariosyPanel">
            <h:panelGrid columns="1" styleClass="rayaForms" width="100%">
                <h:outputLabel  value="Ver Documento" />
            </h:panelGrid>
            <a4j:outputPanel ajaxRendered="true">
                <h:messages id="lblMessages" styleClass="messages" infoClass="infoClass" errorClass="errorClass"
                            warnClass="warnClass" fatalClass="fatalClass" showDetail="true" errorStyle="color:red;"
                            warnStyle="color:green;" infoStyle="color:black;" fatalStyle="color:black"/>
            </a4j:outputPanel>
            <rich:modalPanel height="150" width="350" id="Modal2" resizeable="false" moveable="false" showWhenRendered="true" rendered="#{documentosController.modalObserv}">
                <f:facet name="header">
                    <h:panelGroup>
                        <h:outputText value="Observacion" />
                    </h:panelGroup>
                </f:facet>
                <h:panelGroup>
                    <h:panelGrid columns="2">
                        <h:outputLabel value="Observacion:"/>
                        <h:inputTextarea value="#{documentosController.documentoIncSelec.observar}" />&nbsp;
                        <h:commandButton id="btnAceptar" value="Aceptar" action="#{documentosController.aceptarObserv}"/>
                    </h:panelGrid>
                    <rich:componentControl for="Modal2" attachTo="btnAceptar" operation="hide" event="onclick"/>
                </h:panelGroup>
            </rich:modalPanel>
            <h:panelGrid columns="3" styleClass="tablaCentrada">
                <h:commandButton action="#{documentosController.anterior}" title="Anterior" image="/img/anterior2.png"/>
                <h:panelGrid>
                    <h:commandButton value="Observar" action="#{documentosController.verObservacion}" />
                    <a4j:mediaOutput styleClass="imagen" element="img" session="true" align="middle" createContent="#{documentosController.drawImage}" mimeType="image/jpg" />
                </h:panelGrid>
                <h:commandButton action="#{documentosController.siguiente}" title="Siguiente" image="/img/siguiente2.png"/>
            </h:panelGrid>
        </h:form>
    </t:div>
</f:view>